
def outbound_1():
  """E1. Outbound call DN1 to ExtDn, release DN1"""
  SiebelAg1.MakeCall(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  SiebelAg1.ReleaseCall()

def outbound_2():
  """E2. Outbound call DN1 to ExtDn, abnormal release DN1"""
  SiebelAg1.MakeCall(Ext1DN2)
  SiebelAg1.ReleaseCall()

def outbound_3():
  """E3. Outbound call DN1 to ExtDn, release ExtDn"""
  SiebelAg1.MakeCall(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  Ext1SiebelAg2.ReleaseCall()


def outbound_6():
  """E6. DN1 internal call to DN3, DN3 two step transfer to ExtDN, release DN1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  SiebelAg3.CompleteTransfer()
  SiebelAg1.ReleaseCall()

def outbound_7():
  """E7. DN1 internal call to DN3, DN3 tinit to ExtDN,  abn rel DN3, rel DN1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  SiebelAg3.ReleaseCall()
  SiebelAg1.ReleaseCall()

def outbound_8():
  """E8. DN1 internal call to DN3, DN3 tinit to ExtDN, rel DN1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  SiebelAg1.ReleaseCall()


def outbound_9():
  """E11. DN1 internal call to DN3, DN3  blind trans to ExtDN, rel DN1"""
  LocalTserver.cfgApp.ChangeOption("Tserver", "enable-retrieve-on-release", "false")
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  SiebelAg3.CompleteTransfer()
  SiebelAg1.ReleaseCall()
  LocalTserver.cfgApp.ChangeOption("Tserver", "enable-retrieve-on-release", "true")
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  SiebelAg3.CompleteTransfer()
  SiebelAg1.ReleaseCall()

def outbound_11():
  """E13. DN1 internal call to ACD3, PosID3 two step transfer to ExtDN, release DN1"""
  SiebelAg1.MakeCall(ACD3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  SiebelAg3.CompleteTransfer()
  SiebelAg1.ReleaseCall()

def outbound_11a():
  """E14. DN1 internal call to ACD3, PosID3 tinit transf to ExtDN, abn rel PosID3, rel DN1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  SiebelAg3.ReleaseCall()
  SiebelAg1.ReleaseCall()



def outbound_12():
  """E14. DN1 internal call to ACD3, PosID3 tinit transf to ExtDN, abn rel PosID3, rel DN1"""
  SiebelAg1.MakeCall(ACD3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  SiebelAg3.ReleaseCall()
  SiebelAg1.ReleaseCall()

def outbound_13():
  """E17. DN1 internal call to ACD3, PosID3 tinit trans to ExtDN, rel DN1, release ExtDN"""
  SiebelAg1.MakeCall(ACD3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  SiebelAg1.ReleaseCall()
  Ext1SiebelAg2.ReleaseCall()

def outbound_14():
  """E18. DN1 internal call to ACD3, PosID3  blind transfer to ExtDN, rel DN1"""
  SiebelAg1.MakeCall(ACD3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateTransfer(Ext1DN2)
  SiebelAg3.CompleteTransfer()
  SiebelAg1.ReleaseCall()

#def outbound_16():
#Switch does not support complete conference to outside party
#  """E20. DN1 internal call to DN3, DN3 conference to ExtDN, release DN1,DN3"""
#  SiebelAg1.MakeCall(DN3)
#  SiebelAg3.AnswerCall()
#  SiebelAg3.InitiateConference(Ext1DN2)
#  Ext1SiebelAg2.AnswerCall()
#  SiebelAg3.CompleteConference()
#  SiebelAg1.ReleaseCall()
#  SiebelAg3.ReleaseCall()

def outbound_17():
  """E21. DN1 internal call to DN3, DN3 cinit conf to ExtDN, abn release DN3, release DN1"""
  SiebelAg1.MakeCall(DN3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateConference(Ext1DN2)
  SiebelAg3.ReleaseCall()
  SiebelAg1.ReleaseCall()

#def outbound_18():
#Switch does not support complete conference to outside party
#  """E24.  DN1 internal call to ACD3, PosID3 conference to ExtDN, release DN1,PosID3"""
#  SiebelAg1.MakeCall(ACD3)
#  SiebelAg3.AnswerCall()
#  SiebelAg3.InitiateConference(Ext1DN2)
#  Ext1SiebelAg2.AnswerCall()
#  SiebelAg3.CompleteConference()
#  SiebelAg1.ReleaseCall()
#  SiebelAg3.ReleaseCall()

def outbound_19():
  """E27. DN1 internal call to ACD3, PosID3  cinit  to ExtDN, release DN1, rel ExtDN"""
  SiebelAg1.MakeCall(ACD3)
  SiebelAg3.AnswerCall()
  SiebelAg3.InitiateConference(Ext1DN2)
  Ext1SiebelAg2.AnswerCall()
  SiebelAg1.ReleaseCall()
  Ext1SiebelAg2.ReleaseCall()
